package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.ConsumeLogDao;
import com.edt.ichannel.api.entiy.local.ConsumeLog;
import com.edt.ichannel.api.service.ConsumeLogService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class ConsumeLogServiceImpl implements ConsumeLogService {
    @Resource
    private ConsumeLogDao consumeLogDao;

    @Override
    @Transactional(propagation = Propagation.REQUIRED ,rollbackFor = Exception.class)
    public void saveConsumeLog(ConsumeLog consumeLog) {
        consumeLogDao.saveConsumeLog(consumeLog);
    }
}
